{extend name="public:_base" /}

{block name="js"}
<!--验证-->
<script type="text/javascript" src="__STATIC__/admin/js/tempname.js"></script>
{/block}
{block name="main"}

{include file="setview/bar" /}

<div class="page-container" style="padding-top:10px">
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            <a class="btn radius btn-primary" onClick="edit('添加模板','{:url('setview/edit',['dir'=>$Request.param.dir,'type'=>$Request.param.type])}','10001')"
                href="javascript:;">
                <i class="Hui-iconfont">&#xe600;</i> 添加模板
            </a>
        </span>

    </div>

    <div class="mDiv">
        <div class="ftitle">
            <h3>文件列表(共{$dirlist|count}条记录)</h3>
        </div>
    </div>

    <div class=" cl">
        <table class="table table-border table-bg" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th width="40">
                        序号
                    </th>
                    <th width="60">
                        类型
                    </th>
                    <th>
                        文件名
                    </th>
                    <th width="100">
                        文件大小
                    </th>
                    <th width="80">
                        更新时间
                    </th>
                    <th width="40">
                        操作
                    </th>
                </tr>
            </thead>
            <tbody id="treet1">
                {volist name="dirlist" id="vo"}
                <tr>
                    <td>{$i}</td>
                    <td>{$vo.type??''}</td>
                    <td>
                        <h6 title="{$vo.name}">{$vo.name??''}</h6>
                    </td>
                    <td>{$vo.size??''}KB</td>
                    <td>{$vo.date??''}</td>
                    <td>
                        <a class="btn radius btn-xs btn-warning"
                            onClick="edit('编辑','{:url('setview/edit',['dir'=>$Request.param.dir,'name'=>$vo.name,'type'=>$Request.param.type])}','10001')"
                            href="javascript:;">
                            <i class="fa fa-pencil-square-o"></i>编辑
                        </a>
                    </td>
                </tr>
                {/volist}
            </tbody>
        </table>
    </div>

</div>
</div>
{/block}